<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>3_1-行内嵌入JS代码</title>
	</head>
	<body>
		 <p>行内嵌入式引入JavaScript</p>
		  <form name="form1">
			<input type="button" id="myButton" name="TestButton" value="点我试试看">
		  </form>
		  <script type="text/javascript">
		    document.getElementById('myButton').addEventListener('click', function() {
		      alert('你已点击我了哦!');
		    });
		  </script>
	</body>
</html>